home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 28
/
Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso
/
Aminet
/
dev
/
misc
/
gms_joyports.lha
/
JoyPorts
/
joyports_data.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-07-08
|
2KB
|
57 lines
/* Module Header
** -------------
** This object file must be linked right at the start of the output file.
** It is very important that the "struct ModHeader" part stays at the top,
** or the module will not work.
*/
#define DPKNOBASE 1
#include <proto/dpkernel.h>
#define JOYMOD_VERSION 1
#define JOYMOD_REVISION 2
extern BYTE ModAuthor[];
extern BYTE ModDate[];
extern BYTE ModCopyright[];
extern BYTE ModName[];
extern LIBFUNC LONG (CMDInit)(mreg(__a0) struct Module *, mreg(__a1) APTR DPKBase,
mreg(__a2) struct GVBase *, mreg(__d0) LONG dpkVersion,
mreg(__d1) LONG dpkRevision);
extern LIBFUNC void (CMDClose)(mreg(__a0) struct Module *);
extern LIBFUNC LONG (CMDExpunge)(void);
extern LIBFUNC LONG (CMDOpen)(mreg(__a0) struct Module *);
struct ModHeader ModHeader = {
MODULE_HEADER_V1, /* Version of this structure */
CMDInit, /* Init() */
CMDClose, /* Close() */
CMDExpunge, /* Expunge() */
JMP_LVO, /* Type of jump table to be generated for our own use */
0, /* Reserved */
ModAuthor, /* Author that wrote the module */
0, /* Pointer to function list */
CPU_68000, /* The type of CPU that this module is compiled for */
JOYMOD_VERSION, /* Version of this module */
JOYMOD_REVISION, /* Revision of this module */
DPKVersion, /* Required DPK Version */
DPKRevision, /* Required DPK Revision */
CMDOpen, /* Open() */
0, /* Reserved */
ModCopyright, /* Copyright and Company information */
ModDate, /* The date of module compilation */
ModName, /* The name of this module */
JMP_LVO, /* The dpkernel jump table that we want */
0 /* Reserved */
};
LONG custom = 0xdff000;
LONG cia = 0xbfe001;
APTR JoyObject = NULL;
APTR DPKBase;
APTR GVBase;
struct ModPublic *Public;